﻿using System.Collections.Generic;

namespace FGK
{

    public class Mesh
    {
        public List<Vector3> vertexList;
        public List<Vector3> normalList;
        public List<Triangle> faceList;
        public List<Vector2> texCoordList;
        public Material material;
        public string name;
        

        public Mesh()
        {
            this.name = "newMesh";
            this.vertexList = new List<Vector3>();
            this.normalList = new List<Vector3>();
            this.faceList = new List<Triangle>();
            this.texCoordList = new List<Vector2>();
            this.material = new Material();
        }
        public Mesh(string groupName, List<Triangle> faces)
        {
            this.name = groupName;
            this.vertexList = new List<Vector3>();
            this.normalList = new List<Vector3>();
            this.faceList = faces;
            this.texCoordList = new List<Vector2>();
            this.material = new Material();
        }
        public Mesh(string groupName)
        {
            this.name = groupName;
            this.vertexList = new List<Vector3>();
            this.normalList = new List<Vector3>();
            this.faceList = new List<Triangle>();
            this.texCoordList = new List<Vector2>();
            this.material = new Material();
        }


        public override string ToString()
        {
            return ("Mesh Name: " + this.name + "\nTriCount: " + this.faceList.Count.ToString()+"\n");
        }
    }
}